/**
 * 用户与权限 - 系统配置路由
 */
import Layout from '@/layout'

// 基础数据路由
const sysUserAndRoleRoutes = {
  path: '/userAndRole',
  component: Layout,
  redirect: '/userAndRole/sysUser',
  name: '用户与权限',
  meta: {
    title: '用户与权限',
    icon: 'example',
    rightsKey: '/userAndRole'
  },
  children: [
    {
      path: 'sysUser',
      meta: { title: '用户', rightsKey: '/userAndRole/sysUser' },
      name: 'SysUser',
      component: () => import('@/views/userAndRole/user/sysUser')
    },
    {
      path: 'updateSysUser',
      meta: { title: '编辑用户', hidden: true },
      name: 'UpdateSysUser',
      component: () => import('@/views/userAndRole/user/saveAndEditSysUser')
    },
    {
      path: 'sysDep',
      meta: { title: '组织', rightsKey: '/userAndRole/sysDep' },
      name: 'SysDep',
      component: () => import('@/views/userAndRole/department/sysDep')
    },
    {
      path: 'sysRole',
      meta: { title: '角色与权限', rightsKey: '/userAndRole/sysRole' },
      name: 'SysRole',
      component: () => import('@/views/userAndRole/role/sysRole')
    },
    {
      path: 'resourceRoutes',
      meta: { title: '资源路由管理', rightsKey: '/userAndRole/resourceRoutes' },
      name: 'GetRoutes',
      component: () => import('@/views/userAndRole/resourceRoutes/resourceRoutes')
    },
    {
      path: 'updateSysRole',
      meta: { title: '编辑角色', hidden: true },
      name: 'UpdateSysRole',
      component: () => import('@/views/userAndRole/role/saveAndEditSysRole')
    }
    // {
    //   path: 'sysOaUser',
    //   meta: { title: 'OA用户管理', rightsKey: '/userAndRole/sysOaUser' },
    //   name: 'SysOaUser'
    //   component: () => import('@/views/userAndRole/third/thirdUser')
    // },
    // {
    //   path: 'sysBindRole',
    //   meta: { title: '绑定角色', hidden: true },
    //   name: 'SysBindRole',
    //   component: () => import('@/views/userAndRole/third/bindRole')
    // }
  ]
}
export { sysUserAndRoleRoutes }
